#pragma once
#include "cocos2d.h"
#include "cocostudio/CocoStudio.h"
#include "ui/CocosGUI.h"
#include "../common/Common.h"
#include "../ui/FunctionBtn.h"
USING_NS_CC;

class MainLayoutBox : public cocos2d::Node
{
public:
	MainLayoutBox();
	~MainLayoutBox();
public:
	static cocos2d::Node* createNode();
	virtual bool init();
	CREATE_FUNC(MainLayoutBox);
public:
	cocos2d::ui::ListView *m_bigListView;
	Node* m_baseItem;
	vector<FunctionBtn*> m_baseList;

	Node* m_magicItem;
	vector<FunctionBtn*> m_magicList;

	void GenerateControl();
	void BaseResetPosition();
	void MagicResetPosition();
	void OtherResetPosition();
};
